<?php if(!defined("PATH_HD"))exit;?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>行天下 看世界</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link type="text/css" rel="stylesheet" href="http://localhost/traveles/admin/tpl/public/css/base.css"/>
        <script type="text/javascript" src="<?php echo "http://localhost/traveles/admin/tpl/public/js/jquery-1.7.2.min.js";?>"></script>
        <script type="text/javascript" src="<?php echo "http://localhost/traveles/admin/tpl/public/js/news.js";?>"></script>
    </head>
    <body>
        <!--现在的位置-->
            <div class="position">
                <span class="word">您现在的位置： ->  </span>
                <a href="http://localhost/traveles/admin.php/news/index" class="new_pos">内容管理</a>
            </div>
        <!--正文内容-->
            <!--正文中发表文章按钮-->
            <div class="button1">
                <a href="http://localhost/traveles/admin.php/news/add_show">发表文章</a>
            </div>
            <!--正文中已发表文章的表格-->
                <form action="http://localhost/traveles/admin.php/news/delall" method="post">
                <table class="table1">
                <thead>
                    <tr>
                        <td width="10"><input type="checkbox" class="del" name="del"/></td>
                        <td width="30">ID</td>
                        <td width="150">标题</td>
                        <td width="160">栏目</td>
                        <td width="60">点击率</td>
                        <td width="100">作者</td>
                        <td width="100">发布时间</td>
                        <td width="150">操作</td>
                    </tr>
                </thead>
                <tbody>
                    <?php $hd["list"]["v"]["total"]=0;
if(!empty($news)):
$hd_list_total = count($news);
$hd_list_row = min(floor($hd_list_total/1),20);
$hd["list"]["hd_list_total"]=$hd_list_total;
$hd_list_id=0;
for($i=0;$i<$hd_list_total;$i+=1):
$hd["list"]["v"]["first"]=$hd_list_id==0?true:false;
$hd["list"]["v"]["last"]=$hd_list_id>=$hd_list_row-1?true:false;
$hd["list"]["v"]["index"]=$hd_list_id+1;
$v=current($news);next($news);?>

                        <tr>
                            <td widtd="10"><input type="checkbox" class="del" name="del[<?php echo $v['id'];?>]"></td>
                            <td widtd="30"><?php echo $v['id'];?></td>
                            <td><?php echo $v['title'];?></td>
                            <td widtd="60"><?php echo $v['cname'];?></td>
                            <td widtd="60"><?php echo $v['click'];?></td>
                            <td widtd="100">
                                <?php  if(@empty($v['username'])){?>站长<?php }else{ ?><?php echo $v['username'];?><?php }?>
                            </td>
                            <td widtd="150"><?php echo date('Y年m月d日',$v['addtime']);?></td>
                            <td widtd="330">
                                <a href="http://localhost/traveles/admin.php/news/index">浏览</a> |
                                <a href="http://localhost/traveles/admin.php/news/edit_show/id/<?php echo $v['id'];?>">编辑</a> |
                                <a href="http://localhost/traveles/admin.php/news/del/id/<?php echo $v['id'];?>">删除</a>
                            </td>
                        </tr>
                    <?php if($hd_list_id>=$hd_list_row-1)break;
$hd_list_id++;
endfor;
$hd["list"]["v"]["total"]=$hd_list_id+1;
endif;
?>
                </tbody>
                </table>
            <div class="send">
                    <input type="button" class="allchoose" value="全选">
                    <input type="button" class="nochoose" value="反选">
                    <input type="submit" name="submit" value="删除" class="botton3">
                </form>
            </div>
            <div class="page right" style="margin-top:10px;"><?php echo $page;?></div>
    </body>
</html>